<template>
	<div class="app">
		<h2>我是App</h2>
		<Child :sendToy="getToy"/>
	</div>
</template>

<script>
	import Child from './components/Child.vue'

	export default {
		name:'App',
		components:{Child},
		methods: {
			getToy(t){
				console.log('我是父亲',t)
			}
		},
	}
</script>

<style>
	.app{
		background-color: gray;
		padding: 20px;
	}
</style>